package tt.dz.egobus.servicemanager.service;

import tt.dz.egobus.servicemanager.base.service.ExtendBaseService;
import tt.dz.egobus.servicemanager.entities.BusService;

import java.util.List;

/**
 * @author Anson
 * @date 17-3-15
 * @name 服务类型服务方法
 * @since 1.0.1
 */
public interface BusServiceService extends ExtendBaseService<BusService, String> {

    /**
     * @param businessCode 服务号
     * @param execludeId   [非必须]排除的id
     * @author Anson
     * @date 17-3-28
     * @name 判断当前是否存在有效的服务号绑定
     * @since 1.0.3
     */
    boolean isExistBusinessCode(int businessCode, String execludeId);

    /**
     * @param businessCode 服务号
     * @author Anson
     * @date 17-3-31
     * @name 当前
     * @since 1.0.3
     */
    boolean isBusinessCodeActive(int businessCode);

    /**
     * @param businessCode
     * @author Anson
     * @date 17-8-30
     * @name 根据业务码获取产品信息
     * @since 1.0.7
     */
    BusService getBusServiceByBusinessCode(int businessCode);

    /**
     * @param businessCodes
     * @author Anson
     * @date 17-9-1
     * @name 根据业务码集合查询服务
     * @since 1.0.7
     */
    List<BusService> getServices(Integer[] businessCodes);
}
